import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


// 导入components
import Swiper from './components/Swiper.vue'
import BaoBaoList from './components/BaoBaoList.vue'
import Search from './components/Search.vue'
import NewBanner from './components/NewBanner.vue'
import Love from './components/Love.vue'

// 注册组件(全局组件，可以在所有.Vue文件中使用)
Vue.component('Swiper',Swiper);
Vue.component('BaoBaoList',BaoBaoList);
Vue.component('Search',Search);
Vue.component('NewBanner',NewBanner);
Vue.component('Love',Love);

// 导入组件库组件
import { Tabbar, TabbarItem,Form,Field,NavBar,Swipe,SwipeItem,Button,Sidebar, SidebarItem,Card,Icon,Dialog,AddressEdit} from 'vant';

// 注册组件库组件
Vue.use(Tabbar);
Vue.use(TabbarItem);
Vue.use(Form);
Vue.use(Field);
Vue.use(NavBar);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Button);
Vue.use(Sidebar);
Vue.use(SidebarItem);
Vue.use(Card);
Vue.use(Icon);
Vue.use(AddressEdit);
Vue.use(Dialog);

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
